package com.zero.state.mode.impl;

import com.zero.state.context.DragonSlayer;
import com.zero.state.mode.State;

public class NormalState implements State {
    @Override
    public void handle(DragonSlayer dragonSlayer) {
        //1.执行该模式下的功能
        System.out.println("纳兹发动了火龙的咆哮,造成5点伤害");
        //2.切换模式
        dragonSlayer.setState(new DragonForceState());
    }
}
